home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
NextAnswers
/
EOF1.2_PDO4.0_Example
/
Makefile.postamble-hpux-sybase
< prev
next >
Wrap
Makefile
|
1996-04-15
|
676b
|
21 lines
$(SYMROOT)/libsybdb.a:
( set -x; patchdir=$(PATCH_OFILE_DIR)-$$$$; \
mkdir "$$patchdir"; \
library_dir=`pwd`; \
cd "$$patchdir"; \
ar x $(INPUT_LIBRARY); \
for symbol in $(SYMBOLS_TO_HIDE); do \
modules=`nm -Ap * | grep "$$symbol" | awk -F: '{print $$1}'` ; \
modules_to_relink="$$modules_to_relink $$modules"; \
ld_hide_options="$$ld_hide_options -h $$symbol"; \
done; \
new_ofile="RelinkedModules.o" ; \
ld -r $$ld_hide_options $$modules_to_relink -o $$new_ofile; \
rm -f $$modules_to_relink; \
ar r $$library_dir/$(OUTPUT_LIBRARY) *; \
cd "$$library_dir"; \
rm -rf "$$patchdir" )